package com.training.trainingsystem;

import org.mybatis.spring.annotation.MapperScan; // 1. 导入 MapperScan
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
// import org.springframework.boot.autoconfigure.domain.EntityScan; // 2. 移除 JPA 的 EntityScan

@SpringBootApplication(scanBasePackages = "com.training") // 这个保持，用于扫描 Controllers, Services
// @EntityScan(basePackages = "com.training.entity") // 3. 移除 JPA 的 EntityScan
@MapperScan("com.training.mapper") // 4. 添加 MapperScan，指定 Mapper 接口所在的包
public class TrainingSystemApplication {

    public static void main(String[] args) {
        SpringApplication.run(TrainingSystemApplication.class, args);
        System.out.println("Spring Boot Application with MyBatis [TrainingSystemApplication] started successfully!");
    }
}